﻿@using MVCDemo.Models;
@model IEnumerable<Department>

@{
    ViewBag.Title = "List of Departments";
}

<div style="font-family: Arial">
    <h2>List of Departments</h2>

    <ul>
        @foreach (Department department in @Model)
        {
            <li>@Html.ActionLink(department.deptName, "Index", "Employee", new { departmentId = department.deptId },null)</li>
        }
    </ul>
</div>
